package com.vturkey.controller;

import com.vturkey.beans.UserBean;
import com.vturkey.model.User;

public class MainPageController {
	
	private UserBean userBean;
	
	private User user;

	public void saveUser(){
		userBean.saveUser(user);
	}
	
	public UserBean getUserBean() {
		return userBean;
	}

	public void setUserBean(UserBean userBean) {
		this.userBean = userBean;
	}

	public User getUser() {
		if(user==null){
			user = new User();
		}
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
	
}